<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>CivilizationbyQuentin&amp;BJ:  Fichier source de /home/bj/Projet/lib/Unite.hpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Généré par Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">CivilizationbyQuentin&BJ</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/bj/Projet/lib/Unite.hpp</div>  </div>
</div>
<div class="contents">
<a href="Unite_8hpp.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef _unite_HPP_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define _unite_HPP_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;SDL.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;SDL/SDL_ttf.h&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;../lib/Coordonnes.hpp&quot;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;../lib/Joueur.hpp&quot;</span>
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="keyword">struct </span><a class="code" href="structPartie.html">Partie</a>;
<a name="l00010"></a>00010 
<a name="l00011"></a><a class="code" href="Unite_8hpp.html#af9a28b1f99608a30fb3d4b10f199562f">00011</a> <span class="keyword">enum</span> <a class="code" href="Unite_8hpp.html#af9a28b1f99608a30fb3d4b10f199562f">Nom</a>
<a name="l00012"></a>00012 {
<a name="l00013"></a><a class="code" href="Unite_8hpp.html#af9a28b1f99608a30fb3d4b10f199562fa0f6899c66ebd0519919b11ba4fbd209a">00013</a>     <a class="code" href="Unite_8hpp.html#af9a28b1f99608a30fb3d4b10f199562fa0f6899c66ebd0519919b11ba4fbd209a">u_non_init</a>,
<a name="l00014"></a><a class="code" href="Unite_8hpp.html#af9a28b1f99608a30fb3d4b10f199562fab9b301517f682fad0dd6023ecc44e150">00014</a>     <a class="code" href="Unite_8hpp.html#af9a28b1f99608a30fb3d4b10f199562fab9b301517f682fad0dd6023ecc44e150">colon</a>,
<a name="l00015"></a><a class="code" href="Unite_8hpp.html#af9a28b1f99608a30fb3d4b10f199562faac4a2e24b80c1d4aba24865ec739e410">00015</a>     <a class="code" href="Unite_8hpp.html#af9a28b1f99608a30fb3d4b10f199562faac4a2e24b80c1d4aba24865ec739e410">guerrier</a>
<a name="l00016"></a>00016 };
<a name="l00017"></a>00017 
<a name="l00018"></a><a class="code" href="structUnite.html">00018</a> <span class="keyword">struct </span><a class="code" href="structUnite.html">Unite</a>
<a name="l00019"></a>00019 {
<a name="l00020"></a><a class="code" href="structUnite.html#a96f8be3581218567512c776c5b338434">00020</a>     <a class="code" href="Unite_8hpp.html#af9a28b1f99608a30fb3d4b10f199562f">Nom</a> <a class="code" href="structUnite.html#a96f8be3581218567512c776c5b338434">nom</a>;
<a name="l00021"></a><a class="code" href="structUnite.html#a52446a117d64f123d5d8bb3a8597130a">00021</a>     <span class="keywordtype">int</span> <a class="code" href="structUnite.html#a52446a117d64f123d5d8bb3a8597130a">pdv</a>;
<a name="l00022"></a><a class="code" href="structUnite.html#a1def06285e92e3b3e2182d7cf6b528e5">00022</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structUnite.html#a1def06285e92e3b3e2182d7cf6b528e5">force</a>;
<a name="l00023"></a><a class="code" href="structUnite.html#ad1e76f33fa4cc2e789cc25fe30348a92">00023</a>     <a class="code" href="structCoord.html">Coord</a> * <a class="code" href="structUnite.html#ad1e76f33fa4cc2e789cc25fe30348a92">pos</a>;
<a name="l00024"></a>00024 };
<a name="l00035"></a>00035 <span class="keywordtype">void</span> <a class="code" href="Unite_8hpp.html#addab3c5a3228bfcf781f22be04d974d9">Init_Unite</a>  ( <a class="code" href="structUnite.html">Unite</a> * U);
<a name="l00036"></a>00036 
<a name="l00039"></a>00039 <a class="code" href="structUnite.html">Unite</a> * <a class="code" href="Unite_8hpp.html#ab16b51551bc7260961de54b9e61f708a">Alloue_Unite</a>();
<a name="l00040"></a>00040 
<a name="l00043"></a>00043 <a class="code" href="structUnite.html">Unite</a> * <a class="code" href="Unite_8hpp.html#a690eec2464aa2c41e3b301429f77fd57">Creer_Unite</a> ( <a class="code" href="structJoueur.html">Joueur</a> * maitre, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> x, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> y );
<a name="l00044"></a>00044 
<a name="l00047"></a>00047 <span class="keywordtype">void</span> <a class="code" href="Unite_8hpp.html#ac37f8909d67a22ed1de34757f61321f0">Creer_Colon</a> ( <a class="code" href="structUnite.html">Unite</a> * U);
<a name="l00048"></a>00048 
<a name="l00051"></a>00051 <span class="keywordtype">void</span> <a class="code" href="Unite_8hpp.html#af02e7aa5509bda5455b44816a07df169">Creer_Guerrier</a> ( <a class="code" href="structUnite.html">Unite</a> * U);
<a name="l00052"></a>00052 
<a name="l00055"></a>00055 <span class="keywordtype">void</span> <a class="code" href="Unite_8hpp.html#a76fcb2bf01d66f64a766c95c11fad9d8">Testament_Unite</a> ( <a class="code" href="structUnite.html">Unite</a> * U);
<a name="l00056"></a>00056 
<a name="l00060"></a>00060 <span class="keywordtype">void</span> <a class="code" href="Unite_8hpp.html#aa834063eb023bc5382d4a63884d1b3c8">Copie_Unite</a> ( <a class="code" href="structUnite.html">Unite</a> * U, <span class="keyword">const</span>  <a class="code" href="structUnite.html">Unite</a> * ref);
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <a class="code" href="structCoord.html">Coord</a> * <a class="code" href="Unite_8hpp.html#a7bbfe7afb7a68dd5947474b28008d42c">Retourne_Coord</a> ( <span class="keyword">const</span> <a class="code" href="structUnite.html">Unite</a> * U);
<a name="l00065"></a>00065 <span class="keywordtype">int</span> <a class="code" href="Unite_8hpp.html#ae513fd3063db6ee688fd831d646c908a">Retourne_Pdv</a>     ( <span class="keyword">const</span> <a class="code" href="structUnite.html">Unite</a> * U );
<a name="l00066"></a>00066 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="Unite_8hpp.html#a53999ecc3caebb3fbf9e8a64af941615">Retourne_Force</a>  ( <span class="keyword">const</span> <a class="code" href="structUnite.html">Unite</a> * U );
<a name="l00067"></a>00067 
<a name="l00071"></a>00071 <span class="keywordtype">void</span> <a class="code" href="Unite_8hpp.html#ac1be7b3cc8cd25b17fec15d6710ea182">Affecte_Coord_Unite</a>   ( <a class="code" href="structUnite.html">Unite</a> * U, <span class="keyword">const</span> <a class="code" href="structCoord.html">Coord</a> * Pos);
<a name="l00072"></a>00072 <span class="keywordtype">void</span> <a class="code" href="Unite_8hpp.html#a55fdea21997deb6ea983e97f123cb11d">Affecte_Unite_Coord</a> (<a class="code" href="structUnite.html">Unite</a> * U, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> x, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> y);
<a name="l00073"></a>00073 <span class="keywordtype">void</span> <a class="code" href="Unite_8hpp.html#a7eee33956e4f8758f6e211c923a0da09">affecte_Pdv</a>     ( <a class="code" href="structUnite.html">Unite</a> * U, <span class="keywordtype">int</span> donnee );
<a name="l00074"></a>00074 <span class="keywordtype">void</span> <a class="code" href="Unite_8hpp.html#acd1b0e110a8530d6494320cd257812d8">affecte_Force</a>   ( <a class="code" href="structUnite.html">Unite</a> * U, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> donnee );
<a name="l00075"></a>00075 
<a name="l00078"></a>00078 <span class="keywordtype">void</span> <a class="code" href="Unite_8hpp.html#a5424fa282ec9cd29250c29285f6f8766">Deplacer_Unite</a>  ( <a class="code" href="structUnite.html">Unite</a> * U, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <a class="code" href="structPartie.html">Partie</a> * P);
<a name="l00079"></a>00079 
<a name="l00080"></a>00080 
<a name="l00084"></a>00084 <span class="keywordtype">bool</span> <a class="code" href="Unite_8hpp.html#aa0cc6da7bb938d6d30a066023309dc34">Diminuer_Pdv</a>    ( <a class="code" href="structUnite.html">Unite</a> * U, <span class="keywordtype">int</span> pdv);
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 
<a name="l00092"></a>00092 <span class="keywordtype">int</span> <a class="code" href="Unite_8hpp.html#a5b5291e037ca100a004659e581fdf2d8">Attaquer</a>  ( <a class="code" href="structUnite.html">Unite</a> * A, <a class="code" href="structUnite.html">Unite</a> * D);
<a name="l00093"></a>00093 
<a name="l00098"></a>00098 <span class="keywordtype">int</span> <a class="code" href="Unite_8hpp.html#ad7cb771baba8aef717ec21569764af68">Attaquer_Ville</a>  ( <a class="code" href="structUnite.html">Unite</a> * A, <a class="code" href="structVille.html">Ville</a> * V);
<a name="l00099"></a>00099 
<a name="l00100"></a>00100 
<a name="l00104"></a>00104 <span class="keywordtype">int</span> <a class="code" href="Unite_8hpp.html#a1d4adc9603c08e90f62508fdc6d46dcb">Test_Regression_Unite</a> ();
<a name="l00105"></a>00105 
<a name="l00106"></a>00106 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définition de type</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Énumérations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Valeurs énumérées</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Généré le Mon Jun 4 2012 15:07:05 pour CivilizationbyQuentin&BJ par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
